package com.wkbb.sports.dto;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.metadata.BaseRowModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author lbh
 * @date 2021年03月29日 17:58:34
 * @description: 作业学生详情
 *
 * 导出 Excel 时，若需要表头，那么相应的实体类需要继承 BaseRowModel，并加入 @ExcelProperty(value = “id”, index = 0) 注解。
 * 其中 value 代表在导出 Excel 时，该字段对应的表头名称；index 代表该字段对应的表头位置（从0开始）。
 */
@Data
public class ExcelDto2 extends BaseRowModel {
    @ExcelProperty(value = "序号", index = 0)
    private Integer no;

    @ExcelProperty(value = "学号", index = 1)
    private String userNo;

    @ExcelProperty(value = "学生名称", index = 2)
    private String studentName;

    @ExcelProperty(value = "性别(1男/2女)", index = 3)
    private Integer sex;

    @ExcelProperty(value = "成绩", index = 4)
    private Integer achivement;

    @ExcelProperty(value = "速度", index = 5)
    private double speed;

    @ExcelProperty(value = "是否达标(0未达标/1已达标)", index = 6)
    private Integer reached;

    @ExcelProperty(value = "状态(0未开始 1进行中2已结束3已取消)", index = 7)
    private Integer status;

    private Integer studentId;

    //@ExcelProperty(value = "作业id", index =9)
    private String id;

    private String workId;

}
